<template>
  <div v-title data-title="iWMS-工作台终端" class="home_index">
    <el-table :data="tableData" style="width: 100%" border>
      <el-table-column
        prop="BillId"
        align="center"
        label="发货通知单号"
        width="180"
      >
      </el-table-column>
      <el-table-column prop="CID" align="center" label="拣货托盘" width="180">
      </el-table-column>
      <el-table-column prop="LocationId" align="center" label="拣货库位">
      </el-table-column>
      <el-table-column prop="SkuId" align="center" label="物料编码">
      </el-table-column>
      <el-table-column prop="BatchNo" align="center" label="批次">
      </el-table-column>
      <el-table-column prop="Qty" align="center" label="拣货数量">
      </el-table-column>
      <el-table-column prop="CreateBy" align="center" label="创建人">
      </el-table-column>
      <el-table-column prop="CreateDate" align="center" label="创建时间">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { pickingscan } from "@/api/api";

export default {
  name: "PickGoodsList",
  props: ["CurrentGoods"],
  data() {
    return {
      tableData: [],
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      console.log("CurrentGoods====", this.CurrentGoods);
      let { OrderId } = this.CurrentGoods;
      let params = {
        WbId: sessionStorage.getItem("WbId"),
        BillId: OrderId,
      };
      pickingscan(params).then((res) => {
        console.log("pickingscan===", res);
        this.tableData = res.data.data;
      });
    },
  },
};
</script>
<style lang="scss"></style>
